import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'


Vue.config.productionTip = false

//在此处引入vant组件
import {
    Tab,
    Tabs,
    Lazyload,
    Loading,
    Icon,
    Uploader,
    Field,
    CellGroup,
    DropdownMenu,
    DropdownItem,
    Button,
    Overlay,
    Form,
    Search,
    RadioGroup,
    Radio,
    Checkbox,
    NavBar,
    Tabbar,
    TabbarItem,
    dialog
} from 'vant';

Vue.use(Loading);
Vue.use(Tab);
Vue.use(Tabs);
Vue.use(Lazyload);
Vue.use(Icon);
Vue.use(Uploader);
Vue.use(Field);
Vue.use(CellGroup);
Vue.use(DropdownMenu);
Vue.use(DropdownItem);
Vue.use(Button);
Vue.use(Overlay);
Vue.use(Search);
Vue.use(Form);
Vue.use(RadioGroup);
Vue.use(Radio);
Vue.use(Checkbox);
Vue.use(NavBar);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(dialog);

//登录状态判断
store.dispatch('getUserInfo')
new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')
